Skip to main content

Dates, Emails & Web

Types used for handling time-sensitive data, communication, and external service responses.


📅 Dates & Times (DateTime)

A specific point in time used for scheduling and data timestamping.

Properties

PropertyDescription
GetYear, GetMonth, GetDayReturns the individual date components.
GetHour, GetMinute, GetSecondReturns the individual time components.
GetDayNameReturns the name of the day (e.g., "Monday").
GetMonthNameReturns the name of the month (e.g., "January").
IsDSTReturns true if Daylight Savings Time is currently active.
GetDateTimeFormatReturns the current display format for this value.
GetTypeReturns "datetime".

Functions

FunctionDescription
ParseDateTime(text, format)Converts a text string into a date using the specified format.
SetDateTimeFormat(format)Sets the preferred display format for this date value.

📧 Emails (Email)

Represents an email message received by the Talos agent.

Properties

PropertyDescription
GetSubjectThe subject line of the email.
GetSenderThe sender's email address.
GetRecipientsThe list of email addresses that received the message.
GetBodyPlainTextThe email's main body in plain text format.
GetBodyHTMLThe email's main body in HTML format.
GetBCC, GetCCReturns the BCC and CC recipients.
GetAttachmentsReturns a List of all file attachments.
GetImagesReturns a List of all inline images in the email.
GetTypeReturns "email".

📎 Email Attachments (EmailAttachment)

Properties

PropertyDescription
GetFileNameThe name of the attached file.
GetFileTypeThe type of the attached file.
GetFileURLThe system path where the attachment is temporarily stored.
GetTypeReturns "email_attachment".

🌐 Web Responses (WebServiceResponse)

Represents the data returned by a web service or API request.

Properties

PropertyDescription
GetStatusLineThe HTTP status line returned by the server (e.g., "HTTP/1.1 200 OK").
GetStatusCodeThe numeric HTTP status code (e.g., 200).
GetStatusMessageThe reason phrase (e.g., "OK").
GetHeadersReturns an Object containing all response headers.
GetBodyReturns the content of the response (can be an Object if JSON, or Text).
GetUrlThe final URL after any redirects.
GetCookiesReturns an Object containing all cookies received.
GetElapsedThe total time taken for the request in seconds.
IsReadyReturns true if the asynchronous request has finished.
GetRedirectCountThe number of redirects followed.
GetErrorReturns an Object with code and message if the request failed.
GetTypeReturns "web_service_response".

Functions

FunctionDescription
Wait()Blocks execution until the response is fully received.

🔑 Headers & Data Pairs (KeyValuePairs)

Used for handling information like HTTP headers or settings.

Properties

PropertyDescription
GetKeyReturns the name/key of the data pair.
GetValueReturns the value associated with the key.
GetTypeReturns "key_value_pairs".